-- GENERATED SPELL FOR [Highvale Marksman] --


function spell0_2693(pUnit, Event) --@Multi-Shot,n/a--
pUnit:FullCastSpellOnTarget(14443,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2693', 634, 1)
end

function spell1_2693(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(6660,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2693', 515, 1)
end

function Sorts_2693(pUnit, Event)
local choix_sorts_2693 = math.random(0, 1)
if choix_sorts_2693 == 0 then
pUnit:RegisterEvent('spell0_2693', 1, 1)
end
if choix_sorts_2693 == 1 then
pUnit:RegisterEvent('spell1_2693', 1, 1)
end
end

function mob2693_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2693', math.random(1500, 3000), 1)
end

function mob2693_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2693_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2693_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2693, 1, 'mob2693_Action')
RegisterUnitEvent(2693, 2, 'mob2693_Leave')
RegisterUnitEvent(2693, 3, 'mob2693_Kill')
RegisterUnitEvent(2693, 4, 'mob2693_Die')
